package com.jjh.service;

import com.jjh.consts.Result;
import com.jjh.pojo.User;
import com.jjh.pojo.vo.LoginUser;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;


/**
 * 登录和注册服务接口
 */
public interface LoginAndRegisterService {
    
    
    Result login(HttpServletRequest request, HttpServletResponse response,LoginUser loginUser);
    
    
    Result register(User user);

    Result getCheckCode(HttpServletRequest request);

    Result logout(String username);
}
